package com.example.lotterysystem.service.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ActivityUserStatusEnum {
    INIT(1,"初始化"),
    FINISHED(2,"人员已抽奖");

    private final Integer code;
    private final String message;

    public static ActivityUserStatusEnum forName(String name){
        for (ActivityUserStatusEnum statusEnum: ActivityUserStatusEnum.values()){
            if(statusEnum.name().equalsIgnoreCase(name)){
                return statusEnum;
            }
        }
        return null;
    }
}
